package Test;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JRadioButton;

public class Test3 extends JFrame {

	private JPanel contentPane;
//	String str[] = {"아이디","비밀번호","비밀번호 확인","이름","성별","연령","핸드폰번호"};
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Test3 frame = new Test3();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Test3() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 850, 600);
		contentPane = new JPanel();
		JPanel pan1 = new JPanel();
		JPanel pan2 = new JPanel();
		
		//contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		getContentPane().add(pan1,BorderLayout.CENTER);
		getContentPane().add(pan2,BorderLayout.SOUTH);
		GridLayout grid = new GridLayout(7,2);
		
		grid.setVgap(2);
		pan1.setLayout(grid);
		pan1.setLayout(grid);
		pan1.add(new JLabel("아이디"));
		pan1.add(new JTextField(""));
		pan1.add(new JLabel("비밀번호"));
		pan1.add(new JTextField(""));
		pan1.add(new JLabel("비밀번호 확인"));
		pan1.add(new JTextField(""));
		pan1.add(new JLabel("이름"));
		pan1.add(new JTextField(""));
		pan1.add(new JLabel("성별"));
		
		JRadioButton rdbtnNewRadioButton = new JRadioButton("New radio button");
		pan1.add(rdbtnNewRadioButton);
		pan1.add(new JLabel("연령"));
		pan1.add(new JTextField(""));
		pan1.add(new JLabel("핸드폰 번호"));
		pan1.add(new JTextField(""));
//		for(int i =0 ; i<str.length;i++){
//			pan1.add(new JLabel(str[i]));
//			pan1.add(new JTextField(14));
//		}
		pan2.add(new JButton("확인"));
		pan2.add(new JButton("취소"));
		setSize(350,250);
		setVisible(true);
		
	}

}
